class AssertUtil:
  @classmethod
  def assert_util(cls, login_resp, status_code, status, msg):
    assert status_code == login_resp.status_code
    assert status == login_resp.json().get("status")
    assert msg == login_resp.json().get("msg")


# 封装ihrm的断言
class IhrmAssert:
  @classmethod
  def ihrm_assert(cls, login_resp, status_code, success, code, message):
    assert status_code == login_resp.status_code
    assert success == login_resp.json().get("success")
    assert code == login_resp.json().get("code")
    assert message == login_resp.json().get("message")
